package com.rem.spring.junit4;

import com.rem.spring.bean.Config;
import com.rem.spring.bean.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author Rem
 * @date 2023-03-06
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = Config.class)
public class SpringJunit4Test {

    @Autowired
    private User user;

    @Test
    public void testUser4() {
        System.out.println(user);
    }
}
